package com.msmall.community.bbs.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.msmall.base.model.BaseObject;


@Entity
@Table(name="bbs_master")
public class Master extends BaseObject implements Serializable{

	private static final long serialVersionUID = 4156907893563090311L;

	@Id
	@Column(name="master_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long masterId;

	@Column(name="user_id")
	private Long userid;
	
	@Column(name="board_id")
	private Long boardId;
	
	@Column(name="nickname")
	private String nickname;
	/**
	 * 1:管理所有版区 2管理版区及子版区 3管理单个子版区
	 */
	@Column(name="levels", nullable=false)
	private Integer levels;

	public Master() {
		super();
	}

	public Long getMasterId() {
		return this.masterId;
	}

	public void setMasterId(Long masterId) {
		this.masterId = masterId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getLevels() {
		return levels;
	}

	public void setLevels(Integer levels) {
		this.levels = levels;
	}

	public Long getBoardId() {
		return boardId;
	}

	public void setBoardId(Long boardId) {
		this.boardId = boardId;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	@Override
	public boolean equals(Object o) {
		return false;
	}

	@Override
	public int hashCode() {
		return 0;
	}

	@Override
	public String toString() {
		return null;
	}

}
